Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add big-endian support #257

Merged
merged 2 commits into from
Mar 11, 2022
Merged

Add big-endian support #257

merged 2 commits into from
Mar 11, 2022

Conversation

chfast
Copy link
Owner

@chfast chfast commented Mar 10, 2022

Add to_little_endian()/to_big_endian() helpers converting internal representations to/from requested byte order.
Also fix store()/load() functions to work correctly on big-endian architectures.

@codecov-commenter
Copy link

codecov-commenter commented Mar 10, 2022

Codecov Report

Merging #257 (bc15a64) into master (9cfb756) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #257   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines         1903      1909    +6     
=========================================
+ Hits          1903      1909    +6     
Flag Coverage Δ
32bit 100.00% <100.00%> (ø)
gcc 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
test/unittests/test_builtins.cpp 100.00% <ø> (ø)
include/intx/intx.hpp 100.00% <100.00%> (ø)
test/unittests/test_intx.cpp 100.00% <100.00%> (ø)

chfast added 2 commits March 11, 2022 14:16
Add to_little_endian()/to_big_endian() helpers converting internal
representations to/from requested byte order.
Also fix store()/load() functions to work correctly on big-endian
architectures.
@chfast chfast merged commit e962c7b into master Mar 11, 2022
@chfast chfast deleted the be branch March 11, 2022 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants